<div class="page  has-sidebar-left height-full">
    <header class="blue accent-3 relative">
        <div class="container-fluid text-white">
            <div class="row p-t-b-10 ">
                <div class="col">
                    <h4>
                        <i class="icon-user"></i> 圈子管理
                    </h4>
                </div>
            </div>
            <div class="row">
                <ul class="nav responsive-tab nav-material nav-material-white">
                    <li><a class="nav-link active" href="{:url('vip/circle')}"><i class="icon icon-drivers-license"></i>圈子列表</a>
                    </li>
                    <li>
                        <a class="nav-link active" href="<?php echo url('vip/add_circle'); ?>"><i
                                class="icon icon-plus-circle"></i> 添加</a>
                    </li>
                </ul>
            </div>
        </div>
    </header>

    <style>
        .pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus {
            background-color: #1E9FFF !important;
            border-color: #1E9FFF !important;
        }
    </style>
    <body data-type="index">

    <div class="tpl-page-container">


        <!-- Responsive Table -->
        <div class="row">
            <div class="col-md-12">

                <div class="panel panel-default">
                    <div class="panel-heading">


                        <div class="breadcrumb-env">

                            <ol class="breadcrumb bc-1">


                                <li class="active">

                                    <strong>圈子</strong>
                                </li>
                            </ol>

                        </div>

                    </div>
                    <!-- Responsive Table -->
                    <div class="row">
                        <div class="col-md-12">

                            <div class="panel panel-default">
                                <div class="panel-body">
                                    <div class="table-responsive" data-pattern="priority-columns"
                                         data-focus-btn-icon="fa-asterisk"
                                         data-sticky-table-header="true" data-add-display-all-btn="true"
                                         data-add-focus-btn="true">
                                        <table cellspacing="0"
                                               class="table table-small-font table-bordered table-striped">
                                            <thead>
                                            <tr>
                                                <th style="width: 120px">圈子ID</th>
                                                <th>圈子标题</th>
                                                <th>圈子描述</th>
                                                <th style="width: 150px">操作</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            {volist name="list" id="vo"}
                                            <tr>
                                                <th>
                                                    {$vo.id}
                                                </th>
                                                <th>
                                                    {$vo.name}
                                                </th>
                                                <th>
                                                    {$vo.content}
                                                </th>
                                                <th style=" text-align: center;">
                                                    <a href="{:url('del_circle',['id'=>$vo['id']])}" title="删除"
                                                       class="btn-single"><i class="el-trash-circled"
                                                                             style="font-size: 18px;color:#cc3f44"></i>删除</a>
                                                </th>
                                                <th style=" text-align: center;">
                                                    <a href="{:url('upd_circle',['id'=>$vo['id']])}" title="编辑"
                                                       class="btn-single"><i class="el-trash-circled"
                                                                             style="font-size: 18px;color:#cc3f44"></i>编辑</a>
                                                </th>
                                            </tr>
                                            {/volist}
                                            </tbody>
                                        </table>
                                    </div>
                                    {$list->render()}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            {$code=='1'?'
            <div class="col-md-6" id="alert" style="position:fixed;right:0px;bottom:0px;  width: 350px">
                <div class="alert alert-success">
                    <button type="button" class="close" data-dismiss="alert">
                        <span aria-hidden="true">×</span>
                        <span class="sr-only">Close</span>
                    </button>

                    <strong>恭喜 !</strong> '.$msg.'.
                </div>
            </div>

            ':''}
        </div>